<%--
  Created by IntelliJ IDEA.
  User: ZY
  Date: 2022/4/30
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>

    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改用户</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

</head>
<body>
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改楼宇管理员</h3>
    <form action="${pageContext.request.contextPath}/updateBuildmanagerServlet" method="post">
        <%--隐藏域提交id--%>
        <input type="hidden" name="buildmanager_id" value="${buildmanager.buildmanager_id}">
        <div class="form-group">
            <label for="bm_username">用户名：</label>
            <input type="text" class="form-control" id="bm_username" name="buildmanager_username" value="${buildmanager.buildmanager_username}"  readonly="readonly" placeholder="请输入姓名" />
        </div>
        <div class="form-group">
            <label for="bm_password">密码：</label>
            <input type="text" class="form-control" id="bm_password" value="${buildmanager.buildmanager_password}" name="buildmanager_password">
        </div>
        <div class="form-group">
            <label for="bm_name">姓名：</label>
            <input type="text" class="form-control" id="bm_name" name="buildmanager_name" value="${buildmanager.buildmanager_name}" placeholder="请输入用户名"/>
        </div>

        <div class="form-group">
            <label>性别：</label>
            <c:if test="${buildmanager.buildmanager_sex=='男'}">
                <input type="radio" name="buildmanager_sex" value="男" checked />男
                <input type="radio" name="buildmanager_sex" value="女"  />女
            </c:if>
            <c:if test="${buildmanager.buildmanager_sex=='女'}">
                <input type="radio" name="buildmanager_sex" value="男"  />男
                <input type="radio" name="buildmanager_sex" value="女" checked />女
            </c:if>

        </div>

        <div class="form-group">
            <label for="bm_phone">电话：</label>
            <input type="text" class="form-control" id="bm_phone"  name="buildmanager_tel" value="${buildmanager.buildmanager_tel}" placeholder="请输入电话号码" />
        </div>







        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="提交" />
            <input class="btn btn-default" type="reset" value="重置" />
            <input class="btn btn-default" type="button" value="返回"/>
        </div>
    </form>
</div>
</body>
</html>
